package com.yb.domain.member;

import java.util.Date;

import com.yb.base.annotation.Column;
import com.yb.base.annotation.Table;
import com.yb.base.entity.BaseEntity;
import com.yb.util.comm.DateTimeUtil;

@Table("t_s_sysuser")
public class TsSysuser extends BaseEntity {

	private String username;
	private String password;
	private String type;
	private Date createDate;
	private String modulePassword;
	private String source;
	
	@Column(name = "reject")
	private String tribuneMaster;//是否是论坛版主

	@Column(name = "reject")
	private int isBz;
	@Column(name = "reject")
	private String createDateString;

	public String getModulePassword() {
		return modulePassword;
	}

	public void setModulePassword(String modulePassword) {
		this.modulePassword = modulePassword;
	}

	public Date getCreateDate() {
		return createDate;
	}
	
	public String getCreateDateFormat() {
		if(null != createDate){
			return DateTimeUtil.getDateToString(createDate,"yyyy-MM-dd HH:mm:ss");
		}
		return "";
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getIsBz() {
		return isBz;
	}

	public void setIsBz(int isBz) {
		this.isBz = isBz;
	}

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

	public String getCreateDateString() {
		return createDateString;
	}

	public void setCreateDateString(String createDateString) {
		this.createDateString = createDateString;
	}

	public String getTribuneMaster() {
		if("1".equals(type))
			return "1";
		if(null==tribuneMaster)
			return "0";
		return tribuneMaster;
	}

	public void setTribuneMaster(String tribuneMaster) {
		this.tribuneMaster = tribuneMaster;
	}

}
